﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ThucPhamDetails.aspx.cs" Inherits="QuanLyDinhDuong_ThucPhamDetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Thực phẩm - Quản lý mầm non</title>
    <link rel="stylesheet" href="../css/popup-ducva.css"/>
    <script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="../js/popup.js"></script>
</head>
<body>
    <form id="form1" runat="server" method="post">
   	<section class="wrapper-nhom-don-vi wrapper-pop-up-width-500">
    	<header>
        	<h1 class="heading-pop-up-width-500"><asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></h1>
            <ul class="top-icon-pop-up-width-500">
              <li><a class="dropdown" data-dimension="500|266" href="#"></a></li>
              <li><a class="maximum" data-dimension="100%|100%" href="#"></a></li>
              <li><a class="minimum" data-dimension="500|266" href="#"></a></li>
              <li><a class="turn-off" data-dimension="500|266" href="#"></a></li>
            </ul>
        </header>
    <section class="main"> 
<!--END .clear-->
    <section class="content-pop-up-width-500"> 
                <table class="table-nhom-don-vi table-pop-up-width-500">
                    <tr>
                        <td>
                            Tên thực phẩm (*):
                        </td>
                        <td>
                            <input class="box-nhap-pop-up-width-500" type="text" name="box-nhap-ten-thuc-pham" placeholder="Nhập tên thực phẩm" id="txtTenThucPham" runat="server"/>
                        </td> 
                    </tr>             
                    <tr>
                        <td>
                            Nhóm thực phẩm (*):
                        </td>
                        <td>
                            <asp:DropDownList class="box-nhap-pop-up-width-500" ID="ddlNhomThucPham" runat="server"></asp:DropDownList>
                        </td> 
                    </tr>                
                    <tr>
                        <td>
                            Đơn vị tính (*):
                        </td>
                        <td>
                            <asp:DropDownList class="box-nhap-pop-up-width-500" ID="ddlDonViTinh" runat="server"></asp:DropDownList>
                        </td> 
                    </tr>                
                    <tr>
                        <td>
                            Giá hiện thời (*):
                        </td>
                        <td>
                            <input class="box-nhap-pop-up-width-500" type="text" name="box-nhap-ten-thuc-pham" placeholder="Nhập giá thực phẩm" id="txtGiaHienThoi" runat="server"/>
                        </td> 
                    </tr>                   
                </table>
            <section class="clear">
            </section><!--End .clear-->
            <section class="bottom-content">
                <section class="bottom-right-content">
            	<input class="button-pop-up" type="button" value="Cập nhật" id="btnUpdate" runat="server" OnServerClick="btnUpdate_Click"/>   
                <input class="button-pop-up" type="button" value="Hủy bỏ" onclick="Thoat()"/>               
                </section><!--END .bottom-right-content-->
            </section><!--End .bottom-content-->
        </section><!--End .content-->
    </section><!--END.wrapper-->
    </form>
</body>
</html>
<script type="text/javascript">
    function Thoat() {
        window.parent.closeColorBox();
    }

    $('#btnUpdate').click(function () {
        validateInPut();
    });
    function validateInPut() {
        if ($('#txtTenNhomThucPham').attr("value") == "") {
            alert("Chưa nhập tên nhóm thực phẩm!");
            return false;
        }
        return true;
    }
</script>